package com.weipai.education.mapper;

import com.weipai.education.model.ProductCate;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface ProductCateMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ProductCate record);

    int insertSelective(ProductCate record);

    ProductCate selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ProductCate record);

    int updateByPrimaryKey(ProductCate record);

    List<Map<String,Object>> list(@Param("start") Integer start, @Param("end") Integer size);

    Integer listAmount();

    int batchDeleteById(String[] id);

    ProductCate selectByProductId(@Param("productId") Integer productId);
}